package cn.kinoko.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.unit.DataSize;

/**
 * @author kk
 */
@Data
@Configuration
@ConfigurationProperties("export")
public class ExportConfig {

    private int maxQueueSize = 10;
    private DataSize maxFileAreaSize = DataSize.ofMegabytes(100);
    // 默认5分钟，单位秒
    private long expireTime = 5 * 60;

}
